﻿using UnityEngine;
using System.Collections;
using System.Diagnostics;
using System.Collections.Generic;
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;

namespace Net
{
    public partial class AsycUdpClient
    {
        public delegate void ConnectHandle();
        public delegate void MessageHandle(MessageBuffer msg);
        public delegate void DisconnectHandle();
        public delegate void ExceptionHandle(Exception e);
        public delegate void PingHandle(int m);
        public delegate void DebugHandle(string msg);
        
        public event ConnectHandle OnConnect;
        public event DisconnectHandle OnDisconnect;
        public event MessageHandle OnMessage;
        public event ExceptionHandle OnException;
        public event PingHandle OnPing;
        public event DebugHandle OnDebug;
    }
}

